# Form implementation generated from reading ui file 'src/eric7/Preferences/ConfigurationPages/PrinterPage.ui'
#
# Created by: PyQt6 UI code generator 6.9.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_PrinterPage(object):
    def setupUi(self, PrinterPage):
        PrinterPage.setObjectName("PrinterPage")
        PrinterPage.resize(507, 592)
        self.verticalLayout = QtWidgets.QVBoxLayout(PrinterPage)
        self.verticalLayout.setObjectName("verticalLayout")
        self.headerLabel = QtWidgets.QLabel(parent=PrinterPage)
        self.headerLabel.setObjectName("headerLabel")
        self.verticalLayout.addWidget(self.headerLabel)
        self.line7 = QtWidgets.QFrame(parent=PrinterPage)
        self.line7.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line7.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line7.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line7.setObjectName("line7")
        self.verticalLayout.addWidget(self.line7)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.TextLabel1 = QtWidgets.QLabel(parent=PrinterPage)
        self.TextLabel1.setObjectName("TextLabel1")
        self.gridLayout.addWidget(self.TextLabel1, 0, 0, 1, 1)
        self.printerNameEdit = QtWidgets.QLineEdit(parent=PrinterPage)
        self.printerNameEdit.setObjectName("printerNameEdit")
        self.gridLayout.addWidget(self.printerNameEdit, 0, 1, 1, 3)
        self.TextLabel2 = QtWidgets.QLabel(parent=PrinterPage)
        self.TextLabel2.setAlignment(QtCore.Qt.AlignmentFlag.AlignTop)
        self.TextLabel2.setObjectName("TextLabel2")
        self.gridLayout.addWidget(self.TextLabel2, 1, 0, 1, 1)
        self.frame_2 = QtWidgets.QFrame(parent=PrinterPage)
        self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.frame_2.setObjectName("frame_2")
        self.vboxlayout = QtWidgets.QVBoxLayout(self.frame_2)
        self.vboxlayout.setContentsMargins(0, 0, 0, 0)
        self.vboxlayout.setObjectName("vboxlayout")
        self.printerColorButton = QtWidgets.QRadioButton(parent=self.frame_2)
        self.printerColorButton.setObjectName("printerColorButton")
        self.vboxlayout.addWidget(self.printerColorButton)
        self.printerGrayscaleButton = QtWidgets.QRadioButton(parent=self.frame_2)
        self.printerGrayscaleButton.setObjectName("printerGrayscaleButton")
        self.vboxlayout.addWidget(self.printerGrayscaleButton)
        self.gridLayout.addWidget(self.frame_2, 1, 1, 1, 3)
        self.TextLabel4 = QtWidgets.QLabel(parent=PrinterPage)
        self.TextLabel4.setAlignment(QtCore.Qt.AlignmentFlag.AlignTop)
        self.TextLabel4.setObjectName("TextLabel4")
        self.gridLayout.addWidget(self.TextLabel4, 2, 0, 1, 1)
        self.frame = QtWidgets.QFrame(parent=PrinterPage)
        self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.frame.setObjectName("frame")
        self.vboxlayout1 = QtWidgets.QVBoxLayout(self.frame)
        self.vboxlayout1.setContentsMargins(0, 0, 0, 0)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.printFirstPageFirstButton = QtWidgets.QRadioButton(parent=self.frame)
        self.printFirstPageFirstButton.setObjectName("printFirstPageFirstButton")
        self.vboxlayout1.addWidget(self.printFirstPageFirstButton)
        self.printFirstPageLastButton = QtWidgets.QRadioButton(parent=self.frame)
        self.printFirstPageLastButton.setObjectName("printFirstPageLastButton")
        self.vboxlayout1.addWidget(self.printFirstPageLastButton)
        self.gridLayout.addWidget(self.frame, 2, 1, 1, 3)
        self.TextLabel3 = QtWidgets.QLabel(parent=PrinterPage)
        self.TextLabel3.setObjectName("TextLabel3")
        self.gridLayout.addWidget(self.TextLabel3, 3, 0, 1, 1)
        self.printMagnificationSpinBox = QtWidgets.QSpinBox(parent=PrinterPage)
        self.printMagnificationSpinBox.setMinimum(-10)
        self.printMagnificationSpinBox.setMaximum(10)
        self.printMagnificationSpinBox.setProperty("value", -3)
        self.printMagnificationSpinBox.setObjectName("printMagnificationSpinBox")
        self.gridLayout.addWidget(self.printMagnificationSpinBox, 3, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(251, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.gridLayout.addItem(spacerItem, 3, 2, 1, 2)
        self.label = QtWidgets.QLabel(parent=PrinterPage)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
        self.resolutionSpinBox = QtWidgets.QSpinBox(parent=PrinterPage)
        self.resolutionSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.resolutionSpinBox.setMaximum(6000)
        self.resolutionSpinBox.setSingleStep(50)
        self.resolutionSpinBox.setObjectName("resolutionSpinBox")
        self.gridLayout.addWidget(self.resolutionSpinBox, 4, 1, 1, 2)
        spacerItem1 = QtWidgets.QSpacerItem(208, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.gridLayout.addItem(spacerItem1, 4, 3, 1, 1)
        self.printheaderFontButton = QtWidgets.QPushButton(parent=PrinterPage)
        self.printheaderFontButton.setObjectName("printheaderFontButton")
        self.gridLayout.addWidget(self.printheaderFontButton, 5, 0, 1, 1)
        self.printheaderFontSample = QtWidgets.QLineEdit(parent=PrinterPage)
        self.printheaderFontSample.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.printheaderFontSample.setAlignment(QtCore.Qt.AlignmentFlag.AlignHCenter)
        self.printheaderFontSample.setReadOnly(True)
        self.printheaderFontSample.setObjectName("printheaderFontSample")
        self.gridLayout.addWidget(self.printheaderFontSample, 5, 1, 1, 3)
        self.verticalLayout.addLayout(self.gridLayout)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.groupBox = QtWidgets.QGroupBox(parent=PrinterPage)
        self.groupBox.setObjectName("groupBox")
        self.gridlayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridlayout.setObjectName("gridlayout")
        self.topMarginSpinBox = QtWidgets.QDoubleSpinBox(parent=self.groupBox)
        self.topMarginSpinBox.setDecimals(1)
        self.topMarginSpinBox.setMaximum(9.9)
        self.topMarginSpinBox.setSingleStep(0.5)
        self.topMarginSpinBox.setObjectName("topMarginSpinBox")
        self.gridlayout.addWidget(self.topMarginSpinBox, 0, 1, 1, 1)
        self.leftMarginSpinBox = QtWidgets.QDoubleSpinBox(parent=self.groupBox)
        self.leftMarginSpinBox.setDecimals(1)
        self.leftMarginSpinBox.setMaximum(9.9)
        self.leftMarginSpinBox.setSingleStep(0.5)
        self.leftMarginSpinBox.setObjectName("leftMarginSpinBox")
        self.gridlayout.addWidget(self.leftMarginSpinBox, 1, 0, 1, 1)
        self.rightMarginSpinBox = QtWidgets.QDoubleSpinBox(parent=self.groupBox)
        self.rightMarginSpinBox.setDecimals(1)
        self.rightMarginSpinBox.setMaximum(9.9)
        self.rightMarginSpinBox.setSingleStep(0.5)
        self.rightMarginSpinBox.setObjectName("rightMarginSpinBox")
        self.gridlayout.addWidget(self.rightMarginSpinBox, 1, 2, 1, 1)
        self.bottomMarginSpinBox = QtWidgets.QDoubleSpinBox(parent=self.groupBox)
        self.bottomMarginSpinBox.setDecimals(1)
        self.bottomMarginSpinBox.setMaximum(9.9)
        self.bottomMarginSpinBox.setSingleStep(0.5)
        self.bottomMarginSpinBox.setObjectName("bottomMarginSpinBox")
        self.gridlayout.addWidget(self.bottomMarginSpinBox, 2, 1, 1, 1)
        self.hboxlayout.addWidget(self.groupBox)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hboxlayout.addItem(spacerItem2)
        self.verticalLayout.addLayout(self.hboxlayout)
        self.printColorModeBox = QtWidgets.QGroupBox(parent=PrinterPage)
        self.printColorModeBox.setObjectName("printColorModeBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.printColorModeBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.normalModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.normalModeButton.setObjectName("normalModeButton")
        self.gridLayout_2.addWidget(self.normalModeButton, 0, 0, 1, 1)
        self.invertLightModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.invertLightModeButton.setObjectName("invertLightModeButton")
        self.gridLayout_2.addWidget(self.invertLightModeButton, 0, 1, 1, 1)
        self.blackOnWhiteModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.blackOnWhiteModeButton.setObjectName("blackOnWhiteModeButton")
        self.gridLayout_2.addWidget(self.blackOnWhiteModeButton, 0, 2, 1, 1)
        self.colorOnWhiteModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.colorOnWhiteModeButton.setObjectName("colorOnWhiteModeButton")
        self.gridLayout_2.addWidget(self.colorOnWhiteModeButton, 1, 0, 1, 1)
        self.colorOnWhiteDefaultModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.colorOnWhiteDefaultModeButton.setObjectName("colorOnWhiteDefaultModeButton")
        self.gridLayout_2.addWidget(self.colorOnWhiteDefaultModeButton, 1, 1, 1, 1)
        self.screenColorsModeButton = QtWidgets.QRadioButton(parent=self.printColorModeBox)
        self.screenColorsModeButton.setObjectName("screenColorsModeButton")
        self.gridLayout_2.addWidget(self.screenColorsModeButton, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.printColorModeBox)
        spacerItem3 = QtWidgets.QSpacerItem(428, 61, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout.addItem(spacerItem3)

        self.retranslateUi(PrinterPage)
        QtCore.QMetaObject.connectSlotsByName(PrinterPage)
        PrinterPage.setTabOrder(self.printerNameEdit, self.printerColorButton)
        PrinterPage.setTabOrder(self.printerColorButton, self.printerGrayscaleButton)
        PrinterPage.setTabOrder(self.printerGrayscaleButton, self.printFirstPageFirstButton)
        PrinterPage.setTabOrder(self.printFirstPageFirstButton, self.printFirstPageLastButton)
        PrinterPage.setTabOrder(self.printFirstPageLastButton, self.printMagnificationSpinBox)
        PrinterPage.setTabOrder(self.printMagnificationSpinBox, self.resolutionSpinBox)
        PrinterPage.setTabOrder(self.resolutionSpinBox, self.printheaderFontButton)
        PrinterPage.setTabOrder(self.printheaderFontButton, self.topMarginSpinBox)
        PrinterPage.setTabOrder(self.topMarginSpinBox, self.leftMarginSpinBox)
        PrinterPage.setTabOrder(self.leftMarginSpinBox, self.rightMarginSpinBox)
        PrinterPage.setTabOrder(self.rightMarginSpinBox, self.bottomMarginSpinBox)

    def retranslateUi(self, PrinterPage):
        _translate = QtCore.QCoreApplication.translate
        self.headerLabel.setText(_translate("PrinterPage", "<b>Configure printer settings</b>"))
        self.TextLabel1.setText(_translate("PrinterPage", "Printername:"))
        self.TextLabel2.setText(_translate("PrinterPage", "Color Mode:"))
        self.printerColorButton.setText(_translate("PrinterPage", "Color"))
        self.printerGrayscaleButton.setText(_translate("PrinterPage", "Gray Scale"))
        self.TextLabel4.setText(_translate("PrinterPage", "Page Order:"))
        self.printFirstPageFirstButton.setText(_translate("PrinterPage", "First Page First"))
        self.printFirstPageLastButton.setText(_translate("PrinterPage", "Last Page First"))
        self.TextLabel3.setText(_translate("PrinterPage", "Magnification:"))
        self.label.setText(_translate("PrinterPage", "Resolution:"))
        self.resolutionSpinBox.setToolTip(_translate("PrinterPage", "Select the printer resolution "))
        self.resolutionSpinBox.setSuffix(_translate("PrinterPage", " DPI"))
        self.printheaderFontButton.setToolTip(_translate("PrinterPage", "Press to select the font for the page headers"))
        self.printheaderFontButton.setText(_translate("PrinterPage", "Header Font"))
        self.printheaderFontSample.setText(_translate("PrinterPage", "Header Font"))
        self.groupBox.setTitle(_translate("PrinterPage", "Margins"))
        self.topMarginSpinBox.setToolTip(_translate("PrinterPage", "Enter the top margin in cm."))
        self.topMarginSpinBox.setSuffix(_translate("PrinterPage", " cm"))
        self.leftMarginSpinBox.setToolTip(_translate("PrinterPage", "Enter the left margin in cm."))
        self.leftMarginSpinBox.setSuffix(_translate("PrinterPage", " cm"))
        self.rightMarginSpinBox.setToolTip(_translate("PrinterPage", "Enter the right margin in cm."))
        self.rightMarginSpinBox.setSuffix(_translate("PrinterPage", " cm"))
        self.bottomMarginSpinBox.setToolTip(_translate("PrinterPage", "Enter the bottom margin in cm."))
        self.bottomMarginSpinBox.setSuffix(_translate("PrinterPage", " cm"))
        self.printColorModeBox.setTitle(_translate("PrinterPage", "Editor Print Color Mode"))
        self.normalModeButton.setToolTip(_translate("PrinterPage", "Print using the current screen colors (except line numbers)."))
        self.normalModeButton.setText(_translate("PrinterPage", "Normal"))
        self.invertLightModeButton.setToolTip(_translate("PrinterPage", "Invert the light value of all colors and print on a light background."))
        self.invertLightModeButton.setText(_translate("PrinterPage", "Invert Light"))
        self.blackOnWhiteModeButton.setToolTip(_translate("PrinterPage", "Print all text as black on a white background."))
        self.blackOnWhiteModeButton.setText(_translate("PrinterPage", "Black on White"))
        self.colorOnWhiteModeButton.setToolTip(_translate("PrinterPage", "Print everything in its own color on a white background."))
        self.colorOnWhiteModeButton.setText(_translate("PrinterPage", "Color on White"))
        self.colorOnWhiteDefaultModeButton.setToolTip(_translate("PrinterPage", "Print everything in its own color on a white background (incl. line numbers)."))
        self.colorOnWhiteDefaultModeButton.setText(_translate("PrinterPage", "Color on White Default"))
        self.screenColorsModeButton.setToolTip(_translate("PrinterPage", "Print using the current screen colours for both foreground and background."))
        self.screenColorsModeButton.setText(_translate("PrinterPage", "Screen Colors"))
